<template>
	<cl-page statusBarBackground="#0C81F7" background-color="#F1F1F1" :fullscreen="true">
		<view class="page-withdraw animate__animated animate__fadeIn">
			<Header tit="REPAY" :title="t('bill.repayment.title')"></Header>
			<view class="content">
				<view class="money">
					<view class="title">{{ $t("bill.repayment.money") }}</view>
					<view class="flex align-end num">
						<view class="font">￥</view>
						<cl-input
							class="input"
							clearable
							:border="false"
							disabled=""
							v-model="money"
						/>
					</view>
					<view class="flex flex-between align-center text">
						<view class="to">{{ $t("bill.repayment.bill") }}</view>
						<view class="tt"></view>
					</view>
				</view>
				<view class="money mt30">
					<view class="title">{{ $t("bill.repayment.type") }}</view>
					<view class="box" :style="show ? 'height:500rpx' : 'height:100rpx'">
						<view class="flex pb20 align-center text" v-for="item in 5">
							<image
								class="icon"
								src="/static/images/wechatpay.png"
								mode="aspectFill"
							></image>
							<view class="bank flex1">{{ $t("bill.repayment.wxpay") }}</view>
							<cl-icon name="success-fill" color="#0C81F7" size="50rpx"></cl-icon>
						</view>
					</view>
					<view @click="show = !show" class="flex flex-center align-center btn_"
						><cl-icon
							class="mr10"
							:name="show ? 'arrow-top' : 'arrow-bottom'"
						></cl-icon>
						{{ show ? $t("invoice.hide") : $t("invoice.show") }}</view
					>
				</view>
				<view class="btn mt30" @click="router.push('/pages/user/bill/repayResult')">{{
					$t("bill.repayment.title")
				}}</view>
			</view>
		</view>
	</cl-page>
</template>

<script lang="ts" setup>
import { computed, reactive, ref } from "vue";
import { onReady } from "@dcloudio/uni-app";
import Header from "/@/components/header.vue";
import { useApp, useCool, useStore } from "/@/cool";
import { useUi } from "/$/cool-ui";
import { useI18n } from "vue-i18n";
const { locale } = useI18n();
const { t } = useI18n();
const { service, router, refs, setRefs, storage, upload } = useCool();
const { cache } = useStore();
const app = useApp();
const ui = useUi();
const active = ref<number>(0);
const show = ref(false);
const money = ref(8000);
</script>

<style lang="scss" scoped>
.page-withdraw {

	.content {
		padding: 30rpx;
		box-sizing: border-box;
	}

	.money {
		.box {
			overflow: hidden;
			transition: all 0.3s ease;
		}

		width: 100%;
		background: #ffffff;
		box-shadow: 0rpx 10rpx 20rpx 0rpx rgba(170, 170, 170, 0.1);
		border-radius: 20rpx;
		box-sizing: border-box;
		padding: 30rpx 40rpx;

		.btn_ {
			font-family: PingFangSC;
			font-weight: 400;
			font-size: 24rpx;
			color: #999999;
			line-height: 50rpx;
			// margin-top: 50rpx;
		}

		.title {
			font-family: PingFangSC;
			font-weight: 400;
			font-size: 38rpx;
			color: #333333;
			margin-bottom: 30rpx;
		}

		.num {
			margin-top: 50rpx;

			.font {
				font-family: PingFangSC;
				font-weight: 400;
				font-size: 40rpx;
				color: #0c81f7;
			}

			:deep(.uni-input-input) {
				font-family: HelveticaNeue;
				font-weight: 500;
				font-size: 70rpx;
				color: #0c81f7;
			}

			:deep(.uni-input-placeholder) {
				font-size: 50rpx;
			}

			:deep(.is-disabled) {
				background-color: transparent;
			}
		}

		.text {
			margin-top: 30rpx;

			.to {
				font-family: PingFangSC;
				font-weight: 400;
				font-size: 24rpx;
				color: #666666;
			}

			.tt {
				font-family: PingFangSC;
				font-weight: 400;
				font-size: 24rpx;
				color: #0c81f7;
			}
		}

		.icon {
			width: 50rpx;
			height: 50rpx;
			margin-right: 35rpx;
		}

		.bank {
			font-family: PingFangSC;
			font-weight: 400;
			font-size: 32rpx;
			color: #333333;
		}
	}

	.btn {
		width: 100%;
		height: 88rpx;
		background: linear-gradient(0deg, #0c81f7 0%, #44a1ff 100%);
		border-radius: 20rpx;
		font-family: PingFangSC;
		font-weight: 400;
		font-size: 38rpx;
		color: #ffffff;
		line-height: 88rpx;
		text-align: center;
	}
}
</style>
